﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SolidworksDLL
{
    public class TestSw
    {
        /// <summary>
        /// 输出sw版本
        /// </summary>
        /// <returns></returns>
        public static string GetVer()
        {
            return SolidWorksHelp.SwApp.RevisionNumber();
        }

        /// <summary>
        /// 获取sw程序的路径
        /// </summary>
        /// <returns></returns>
        public static string GerPath()
        {
            return SolidWorksHelp.SwApp.GetExecutablePath() + @"\sldworks.exe";
        }

        /// <summary>
        /// 设定SW的状态
        /// </summary>
        /// <param name="state"> 1最大化，2最小化，3还原</param>
        public static void MakeWindowSate(int state)
        {
            SolidWorksHelp.SwApp.FrameState = state;
        }

    }
}
